home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_05
/
9n05022a
< prev
next >
Wrap
Text File
|
1991-03-17
|
459b
|
31 lines
#include <stdio.h>
main()
{
int a[5][4] = {
{ 1, 3, 5, 7},
{ 0, 2, 4, 6},
{-4, -3, -2, -1},
{-2, 9, 12, 11},
{11, 13, 15, 17}
};
int i, j;
for (i = 0; i < 5; ++i) {
for (j = 0; j < 4; ++j)
printf("%4d", a[i][j]);
putchar('\n');
}
}
output: <--Pasteup: replace this word with the typeset version of "Output:"
1 3 5 7
0 2 4 6
-4 -3 -2 -1
-2 9 12 11
11 13 15 17